Skip to content

Gpt generation experiment#32

Open
mstephenhunt wants to merge 5 commits intomainfrom
gpt-generation-experiment
Open

Gpt generation experiment#32
mstephenhunt wants to merge 5 commits intomainfrom
gpt-generation-experiment

Conversation

@mstephenhunt
Copy link
Collaborator

Example from rails console:

service = ExerciseRecommenderService.new
exercises = Workout.last.exercises
service.recommend_next_exercise(exercises)
=> 
  [
    "Dumbbell shoulder press",
    "Sit on a bench with a dumbbell in each hand, palms facing forward. Start with the dumbbells at shoulder level. Push the dumbbells overhead until your arms are fully extended. Return to the starting position and repeat."
]


def messages(current_exercises)
exercise_names = current_exercises.pluck(:name).join(", ")

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👇 This is really where the meat of the interaction is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments